<div id="content">
	<div id="sliders">
    	
    </div>
    <div id="search">
    	<div id="search_l"><p>SEARCH</p><span>BEST HALONG CRUISES</span></div>
    	<div id="search_r">
        	<form action="<?php echo base_url(); ?>home/search/index" method="get">
        	<table width="750" border="0" cellspacing="0" cellpadding="0" class="tblsearch">
			  <tr>
			    <td width="154">Cruises names</td>
			    <td width="161">Cruises length</td>
			    <td width="160">Cruises type</td>
			    <td width="155">Cruises price range</td>
			    <td width="108" rowspan="2"><input type="submit" value="" class="ship_submit" /></td>
			  </tr>
			  <tr>
			    <td>
                	<input type="text" name="cruises_name" value="<?php if(isset($_GET['cruises_name'])){ echo $_GET['cruises_name']; } ?>"  onfocus="clearText(this)" onblur="clearText(this)" size="30" />
                </td>
			    <td>
                	<select name="cruises_length" id="">
                    	<option value="0" <?php if(isset($_GET['cruises_length']) && $_GET['cruises_length'] == 0 ){ echo 'selected="selected"'; } ?>>Select length </option>
                        <option value="1" <?php if(isset($_GET['cruises_length']) && $_GET['cruises_length'] == 1 ){ echo 'selected="selected"'; } ?>>1 day</option>
                        <option value="2" <?php if(isset($_GET['cruises_length']) && $_GET['cruises_length'] == 2 ){ echo 'selected="selected"'; } ?>>2 days 1 night</option>
                        <option value="3" <?php if(isset($_GET['cruises_length']) && $_GET['cruises_length'] == 3 ){ echo 'selected="selected"'; } ?>>3 days 2 nights</option>
                        <option value="4" <?php if(isset($_GET['cruises_length']) && $_GET['cruises_length'] == 4 ){ echo 'selected="selected"'; } ?>>4 days 3 nights</option>
                        <option value="5" <?php if(isset($_GET['cruises_length']) && $_GET['cruises_length'] == 5 ){ echo 'selected="selected"'; } ?>>more than</option>
                    </select>
                </td>
			    <td>
                	<select name="cruises_type" id="">
                    	<option value="0" <?php if(isset($_GET['cruises_type']) && $_GET['cruises_type'] == 0 ){ echo 'selected="selected"'; } ?>>Select Cruises type</option>
                        <option value="1" <?php if(isset($_GET['cruises_type']) && $_GET['cruises_type'] == 1 ){ echo 'selected="selected"'; } ?>>Budget</option>
                        <option value="2" <?php if(isset($_GET['cruises_type']) && $_GET['cruises_type'] == 2 ){ echo 'selected="selected"'; } ?>>Superior</option>
                        <option value="3" <?php if(isset($_GET['cruises_type']) && $_GET['cruises_type'] == 3 ){ echo 'selected="selected"'; } ?>>Deluxe</option>
                        <option value="4" <?php if(isset($_GET['cruises_type']) && $_GET['cruises_type'] == 4 ){ echo 'selected="selected"'; } ?>>Luxury</option>
                        <option value="5" <?php if(isset($_GET['cruises_type']) && $_GET['cruises_type'] == 5 ){ echo 'selected="selected"'; } ?>>Premium</option>
                        <option value="6" <?php if(isset($_GET['cruises_type']) && $_GET['cruises_type'] == 6 ){ echo 'selected="selected"'; } ?>>Private</option>
                    </select>
                </td>
			    <td>
                	<select name="cruises_price" id="">
                    	<option value="0" <?php if(isset($_GET['cruises_price']) && $_GET['cruises_price'] == 0 ){ echo 'selected="selected"'; } ?>>Select Price</option>
                        <option value="1" <?php if(isset($_GET['cruises_price']) && $_GET['cruises_price'] == 1 ){ echo 'selected="selected"'; } ?>>Less than $50</option>
                        <option value="2" <?php if(isset($_GET['cruises_price']) && $_GET['cruises_price'] == 2 ){ echo 'selected="selected"'; } ?>>From $50 to $100</option>
                        <option value="3" <?php if(isset($_GET['cruises_price']) && $_GET['cruises_price'] == 3 ){ echo 'selected="selected"'; } ?>>From $100 to $200</option>
                        <option value="4" <?php if(isset($_GET['cruises_price']) && $_GET['cruises_price'] == 4 ){ echo 'selected="selected"'; } ?>>From $200 to $300</option>
                        <option value="5" <?php if(isset($_GET['cruises_price']) && $_GET['cruises_price'] == 5 ){ echo 'selected="selected"'; } ?>>From $300 to $500</option>
                        <option value="6" <?php if(isset($_GET['cruises_price']) && $_GET['cruises_price'] == 6 ){ echo 'selected="selected"'; } ?>>From $500 to $1000</option>
                        <option value="7" <?php if(isset($_GET['cruises_price']) && $_GET['cruises_price'] == 7 ){ echo 'selected="selected"'; } ?>>More than $1000</option>
                    </select>
                </td>
		      </tr>
			</table>
          </form>
        </div>
  </div>
    <div id="list_tour">
    	<div id="tour_left">
        	<div id="topmn">
            	<h2>RELATED CRUISES</h2>
            </div>
            <div style="border:solid 1px #CCC;">
            <div id="cruises_l">
              	<?php
				if(isset($relative) && $relative != NULL){
					foreach($relative as $rela){
						echo "<div class='cruises_l'>";
						echo "<h3><a href='".base_url()."halong-cruises/".$rela['sheep_name_rewrite']."-".$rela['sheep_id'].".html'>".$rela['sheep_name']."</a></h3>";
						echo "<img src='".base_url()."uploads/sheep/logo/".$rela['sheep_image']."' alt='' class='cruis' />";
						echo "<div class='cruises_l_item'>";
							echo "<div class='l_items1'>";
								echo "<img src='".base_url()."uploads/sheep/logo/".$rela['sheep_logo']."' width='60' height='40' />";
							echo "</div>";
							echo "<div class='l_items2'>";
							echo "<div class='stars'>";
								echo "<div class='star_active' style='width:";
								if(is_numeric($rela['sheep_star'])){ echo ($rela['sheep_star']*12);}else{
									echo "36";
								}
								echo "px;'></div>";
							echo "</div>";
							echo "<span style=\"text-decoration:line-through; font-size:11px\">$".$rela['sheep_price_old']."</span> <span style=\"font-size:14px; color:#F30\"><b>$".$rela['sheep_price']."</b></span></div>";

							echo "<div class='l_items3'>";

								echo "<a href='".base_url()."halong-cruises/".$rela['sheep_name_rewrite']."-".$rela['sheep_id'].".html'><img src='".base_url()."public/images/show_price.jpg' title='' alt='' align='right' /></a>";

							echo "</div>";

							echo "<div class='cls'></div>";
						echo "</div>";
						echo "</div>";	
					}
				}
				?>
            </div>
            </div>
            <div id="singup_free">
              	<?php $this->load->view('homes/adv1'); ?>
            </div>
            <div id="vncruises">
            	<img src="<?php echo base_url(); ?>public/images/vncruises.jpg" alt="" />
            </div>
        </div>
    	<div id="tour_right" style="padding-top:0px;">
            <div id="ship_info" style="margin-top:0px;">
            	<div id="cher">
				    <ul id="tabc">
				        <li>Welcome </li>
				        <li>Check Rates  </li>
				        <li class="curent"> Extra Services </li>
				        <li>Submit Booking</li>
				    </ul>
				    <table id="tb" cellspacing="0" cellpadding="0" >
				        <tr style="background: #f2f2f2;">
				            <td style="font-size: 12px; font-weight: bold;">Services</td>
				            <td style="text-align: center;font-size: 12px; font-weight: bold;">Unit</td>
				            <td style="text-align: center;font-size: 12px; font-weight: bold;">Rate</td>
				            <td style="text-align: center;font-size: 12px; font-weight: bold;">Amount</td>
				        </tr>
                        <?php
						if($this->cart->total_items()){
							foreach($listall['cart'] as $key => $value){
						?>
				        <tr >
				            <td style="border: solid 1px #b3b3b3;">
				                <p><input type="radio" checked="checked" style="margin-right:5px"><span style="color: #0071bc;"><?php echo $value['name']; ?></span></p>
				                <p><input type="radio" style="margin-right:5px"><?php echo $value['name']." - ".$value['options']['adults']." adults ".$value['options']['child']." children ".$value['options']['infants']." infants"; ?></p>
				            </td>
				            <td style="border: solid 1px #b3b3b3; border-left: none;text-align: center;">
				                <?php echo $value['options']['adults']." adults ".$value['options']['child']." children ".$value['options']['infants']." infants"; ?>
				            </td>
				            <td style="border: solid 1px #b3b3b3; border-left: none; text-align: center;">
				                $1,088
				            </td>
				            <td style="background: #edf1f6; border: solid 1px #b3b3b3;border-left: none; text-align: center;">
				                $1,088
				            </td>
				        </tr>
				        <tr>
				            <td style="border: solid 1px #b3b3b3; border-top: none;">
				                <p><span style="color: #0e3d52;">Transfer Services (optional)</span></p>
				                <p><input type="checkbox" />  Shuttle Bus Round Trip HN-HL-HN</p>
				                <p><input type="checkbox" /> Hanoi - Halong - Hanoi 4 seats</p>
				                <p><input type="checkbox" /> Hanoi - Halong - Hanoi 7 seats</p>
				                <p><input type="checkbox" /> Hanoi Airport - Hanoi hotel Oneway transfer 4 seaats</p>
				                <p><input type="checkbox" /> Hanoi Airport - Hanoi hotel Oneway transfer 7 seaats</p>
				            </td>
				            <td style="border: solid 1px #b3b3b3; border-top: none;border-left: none; text-align: center;">
				                </br>
				                <p>2 adults, 1 infant</p>
				                <p>2 adults, 1 infant</p>
				                <p>2 adults, 1 infant</p>
				                <p> 2 adults, 1 infant</p>
				                <p>2 adults, 1 infant</p>
				            </td>
				            <td style="border: solid 1px #b3b3b3; border-top: none; border-left: none; text-align: center;">
				                </br>
				                <p>$35</p>
				                <p>$35</p>
				                <p>$35</p>
				                <p>$35</p>
				                <p>$35</p>
				            </td>
				            <td style="background: #edf1f6;border: solid 1px #b3b3b3; border-top: none;border-left: none;text-align: center;">
				                </br>
				                <p>$70</p>
				                <p>$70</p>
				                <p>$70</p>
				                <p>$70</p>
				                <p>$70</p>
				            </td>
				        </tr>
				        <tr>
				            <td style="border: solid 1px #b3b3b3; border-top: none;">
				                <p style="color: #0e3d52;">Extra Services</p>
				                <input type="checkbox" style="margin-right:5px;"/>Vietnam Visa Approval Letter (single entry)
				            </td>
				            <td style="border: solid 1px #b3b3b3; border-top: none;border-left: none;text-align: center;">
				                </br>
				                <select>
				                    <option value="1">1</option>
				                    <option value="2">2</option>
				                    <option value="3">3</option>
				                    <option value="4">4</option>
				                    <option value="5">5</option>
				                </select> &nbsp;pax
				            </td>
				            <td style="border: solid 1px #b3b3b3; border-top: none;border-left: none;text-align: center;">
				                </br>
				                $1,088 </td>
				            <td style="background: #edf1f6;border: solid 1px #b3b3b3; border-top: none;border-left: none;text-align: center;">
				                </br>
				                $1,088 </td>
				        </tr>
				        <tr style="background: #f2f2f2;">
				            <td></td>
				            <td></td>
				            <td style="text-align: center; color: #1c485c; font-size: 12px; font-weight: bold;">Total price </td>
				            <td style="background: #edf1f6;text-align: center;font-size: 12px; font-weight: bold; color: #1c485c;">USD $1198</td>
				        </tr>
                    <?php
							}
						}else{
					?>
                    	<tr style="">
				            <td colspan="4" style="height:100px" align="center">No have something for check</td>
				        </tr>
                    <?php
						}
					?>
				    </table>
				</div>
            </div>
            <div id="hot_tour">
                <div id="title_hot_tour">HALONG CRUISES LASTEST SPECIALS</div>
                 <div class="bg_hot_tour"></div>
           <?php 
			function cut_str($val,$start,$end){
				$total 	= strlen($val);
				$cutted = mb_substr($val,$start,$end,'UTF-8');
				$cutted_leng = strlen($cutted);
				if($cutted_leng < $total){
					$seccess = $cutted."...";
				}else{
					$seccess = $cutted;
				}
				return $seccess;
			}
			if(isset($random)){
				foreach($random as $ran){
					           echo "<div class='list_hot_tour'>";
								echo "<div class='img_hot_tour'><a href='".base_url()."halong-cruises/".$ran['sheep_name_rewrite']."-".$ran['sheep_id'].".html'><img src='".base_url()."uploads/sheep/logo/".$ran['sheep_image_thumb']."'title='' alt='' width='155px' height ='101px' /></div>";
                                    echo "<div class='body_list_hot_tour'>";
                                    	echo "<div class='name_hot_tour'><a href='".base_url()."halong-cruises/".$ran['sheep_name_rewrite']."-".$ran['sheep_id'].".html'>".$ran['sheep_name']."</a></div> ";
                                        echo "<div class='stars'>";
											echo "<div class='star_active' style='width:";
											if(is_numeric($ran['sheep_star'])){ echo ($ran['sheep_star']*12);}else{
												echo "36";
											}
											echo "px;'></div>";
										echo "</div>";  
                                        echo "<div class='des_hot_tour'><p>".strip_tags(cut_str($ran['sheep_info'],0,250))."</p></div>";
                                    echo"</div>";
                                    echo"<div class='right_hot_list_tour'>";
                                    		echo"<div class='oldprice_hot_tour'>From USD <span>$".$ran['sheep_price_old']."</span></div>";
                                            echo"<div class='newprice_hot_tour'>$".$ran['sheep_price']."</div>";
                                            echo"<div class='booking_hot_tour'><a href='".base_url()."halong-cruises/".$ran['sheep_name_rewrite']."-".$ran['sheep_id'].".html'>BOOK NOW</a></div>";
                                    echo"</div>";
                            
                            echo"</div> ";
					
				}
			} 
			?>
  
                    
                    </div>
            

      	</div>
        <div class="cls"></div>

    </div>
	<?php $this->load->view("homes/sheep5item"); ?>
    <div id="luxury_cruises">
        <?php $this->load->view('homes/adv2'); ?>
    </div>
</div>